using System.Collections.Generic;

namespace Sidvall.CodeGenerator.DataObjects
{
	public class Scalar
	{
		public Scalar()
		{
			Facets = new Dictionary<string, object>();
		}

		public string Name { get; set; }
		public bool IsKey { get; set; }
		public DataType ScalarType { get; set; }
		public object DefaultValue { get; set; }

		public Dictionary<string, object> Facets { get; private set; }
		public int? MaxLength { get; set; }
		public byte? Precision { get; set; }
		public byte? Scale { get; set; }
		public bool? IsComputed { get; set; }
		public bool? IsIdentity { get; set; }
		public ConcurrencyMode ConcurrencyMode { get; set; }
	}
}
